home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_09_03
/
9n03038c
< prev
next >
Wrap
Text File
|
1991-01-16
|
774b
|
34 lines
/****************************************************
* NAME : display
* DESCRIPTION: skeleton routine
* to read key stroke
***************************************************/
void t_display()
{
unsigned char key;
int state = 0;
while(1)
{
switch (state)
{
case 0:
/*
* here you would implement a
* state machine to handle cases of
* key strokes and their effect on
* the display
*/
default:
break;
} /* end of switch logic for states */
while (key_que.empty && !reset && !disable_on)
suspend();
key = remove_one(&key_que);
}
}